package commands;

import IA.InformationAggregator;

/**
 *
 * @author Christopher
 */
public class CmdGetItemComments extends Command{
    private Integer index;
    
    public CmdGetItemComments(InformationAggregator ia, String indexStr){
        super(ia);
        index = Integer.parseInt(indexStr);
    }
    @Override
    public Object execute(){
        return ia.getMenu().getComment(index);
    }
}
